<template>
  <div ref="root">This is a root element</div>
</template>

<script>
import { ref, onMounted } from "vue";
export default {
  setup() {
    const root = ref(null);
    onMounted(() => {
      console.log(root.value);
    });
    return { root };
  },
};
</script>

<style>
</style>